import { Router } from "express";
import * as permissionController from "../controllers/permission.controller";

const router = Router();
router.post("/", permissionController.getAllPermissions);
router.get("/:id", permissionController.getPermissinoById);
router.post("/add", permissionController.createPermission);
router.put("/:id", permissionController.updatePermission);
router.delete("/:id", permissionController.deletePermission);

export default router;
